public class Test {
   public static int count=0;
    public static void hanoi(char a,char b,char c,int n){


        if(n==1){
            ++count;
            System.out.println("第"+count+"次移动");
        }
        else if(n>1){

             hanoi(a,c,b,n-1);
            ++count;
            System.out.println("第"+count+"次移动");
             hanoi(b,a,c,n-1);

        }



    }


  public static int func1(int a,int b){
      return a+b;

  }


    public static float max2(float a,float b){

        return a>b?a:b;

    }
    public static float max3(float a,float b,float c){
        float ret=max2(a,b);
        return max2(ret,c);
    }
  public static float func2(float a,float b,float c){

      return a+b+c;


  }
    public static int max2(int a,int b){

        return a>b?a:b;

    }
    public static int max3(int a,int b,int c){
        int ret=max2(a,b);
        return max2(ret,c);
    }
    public static void main(String[] args) {
//float ret=max3(12.2f,67.1f,34.4f);


        hanoi('a','b','c',3);

    }
}
